package com.cloud.cmt.cmtcontrol.clusterdatasource;

/**
 * User: wcy
 * Date: 2017/9/12
 * Time: 17:36
 */
public class DynamicThreadLocal {
    private static ThreadLocal<String> tenlentId = new ThreadLocal<String>();

    public static void setTenlentId(String ten){
        tenlentId.set(ten);
    }

    // ②获取下一个序列值
    public static String getTenlentId() {
        return tenlentId.get();
    }
}
